<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * Controller for managing tables.
 * @package cms-tables/conrollers
 * @category Controller
 * 
 * @author Mark Angelo Angulo
 * @copyright (c) 2014
 */
class Table extends CMS_Controller {

    /**
     *  Constructor method.
     */
    function __construct()
    {
        parent::__construct();
    }

    /**
     * Default method called when nothing is specified.
     * Displays tables.
     * @access public
     */
    public function index()
    {
        // active navigation
        $data['navigation'] = 'tables';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Tables');
        $this->breadcrumb->add_crumb('Basic Tables');
        
        // build template
        $this->template
                ->title('Tables')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('basic', $data);
        
    }
    
    public function basic()
    {
        // active navigation
        $data['navigation'] = 'tables';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Tables');
        $this->breadcrumb->add_crumb('Basic Tables');
        
        // build template
        $this->template
                ->title('Tables')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('basic', $data);
    }
    
    public function advance()
    {
        // active navigation
        $data['navigation'] = 'tables';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Tables');
        $this->breadcrumb->add_crumb('Advance Tables');
        
        // build template
        $this->template
                ->title('Tables')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('advance', $data);
    }
    
    public function advance2()
    {
        // active navigation
        $data['navigation'] = 'tables';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Tables');
        $this->breadcrumb->add_crumb('Advance Tables 2');
        
        // build template
        $this->template
                ->title('Tables')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('advance-2', $data);
    }
    
    public function advance3()
    {
        // active navigation
        $data['navigation'] = 'tables';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Tables');
        $this->breadcrumb->add_crumb('Advance Tables 3');
        
        // build template
        $this->template
                ->title('Tables')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('advance-3', $data);
    }

}

/* End of file dashboard.php */
/* Location: ./application/modules/test/controllers/dashboard.php */